#include <stdio.h>

#include "utringbuffer.h"

int main() {
	char *s, **p;
	UT_ringbuffer *strs;

	utringbuffer_new(strs, 7, &ut_str_icd);

	s = "hello"; utringbuffer_push_back(strs, &s);
	s = "world"; utringbuffer_push_back(strs, &s);

	p = NULL;
	while((p=(char **)utringbuffer_next(strs, p)))
		printf("%s\n", *p);

	utringbuffer_free(strs);
	return 0;
}

